package com.turing.data.model.domain.review;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Description
 * @Author lcy
 * @Date 2021-05-25
 */
@ApiModel(value = "")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ReviewedRecords extends Model<ReviewedRecords> {

    @TableId(value = "parentTaskSn", type = IdType.AUTO)
    private Integer id;

    @TableField("template_sn")
    private String templateSn;

    @TableField("ele_id")
    private Integer eleId;

    @TableField("text")
    private String text;

    @TableField("business_value")
    private String businessValue;

    @TableField("pos")
    private String pos;

    @TableField("para_info")
    private String paraInfo;

    @TableField("parent_task_sn")
    private String parentTaskSn;

    @TableField("child_task_sn")
    private String childTaskSn;

    @TableField("version")
    private Integer version;

    @TableField("is_del")
    @TableLogic
    private Integer isDel;

    @TableField("created_time")
    private Date createdTime;

    @TableField("updated_time")
    private Date updatedTime;

    @TableField("sample_id")
    private String sampleId;

    @TableField("cus_sample_id")
    private String cusSampleId;

    @TableField("content_id")
    private Integer contentId;

    @TableField("task_upload_time")
    private Date taskUploadTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}

